/*
 * XML Type:  CheckRange
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.CheckRange
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML CheckRange(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class CheckRangeImpl extends net.ofx.types.x2003.x04.impl.AbstractCheckInfoImpl implements net.ofx.types.x2003.x04.CheckRange
{
    
    public CheckRangeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CHKNUMSTART$0 = 
        new javax.xml.namespace.QName("", "CHKNUMSTART");
    private static final javax.xml.namespace.QName CHKNUMEND$2 = 
        new javax.xml.namespace.QName("", "CHKNUMEND");
    
    
    /**
     * Gets the "CHKNUMSTART" element
     */
    public java.lang.String getCHKNUMSTART()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHKNUMSTART$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "CHKNUMSTART" element
     */
    public net.ofx.types.x2003.x04.CheckNumberType xgetCHKNUMSTART()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckNumberType target = null;
            target = (net.ofx.types.x2003.x04.CheckNumberType)get_store().find_element_user(CHKNUMSTART$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CHKNUMSTART" element
     */
    public void setCHKNUMSTART(java.lang.String chknumstart)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHKNUMSTART$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CHKNUMSTART$0);
            }
            target.setStringValue(chknumstart);
        }
    }
    
    /**
     * Sets (as xml) the "CHKNUMSTART" element
     */
    public void xsetCHKNUMSTART(net.ofx.types.x2003.x04.CheckNumberType chknumstart)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckNumberType target = null;
            target = (net.ofx.types.x2003.x04.CheckNumberType)get_store().find_element_user(CHKNUMSTART$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CheckNumberType)get_store().add_element_user(CHKNUMSTART$0);
            }
            target.set(chknumstart);
        }
    }
    
    /**
     * Gets the "CHKNUMEND" element
     */
    public java.lang.String getCHKNUMEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHKNUMEND$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "CHKNUMEND" element
     */
    public net.ofx.types.x2003.x04.CheckNumberType xgetCHKNUMEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckNumberType target = null;
            target = (net.ofx.types.x2003.x04.CheckNumberType)get_store().find_element_user(CHKNUMEND$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "CHKNUMEND" element
     */
    public boolean isSetCHKNUMEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CHKNUMEND$2) != 0;
        }
    }
    
    /**
     * Sets the "CHKNUMEND" element
     */
    public void setCHKNUMEND(java.lang.String chknumend)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHKNUMEND$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CHKNUMEND$2);
            }
            target.setStringValue(chknumend);
        }
    }
    
    /**
     * Sets (as xml) the "CHKNUMEND" element
     */
    public void xsetCHKNUMEND(net.ofx.types.x2003.x04.CheckNumberType chknumend)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckNumberType target = null;
            target = (net.ofx.types.x2003.x04.CheckNumberType)get_store().find_element_user(CHKNUMEND$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CheckNumberType)get_store().add_element_user(CHKNUMEND$2);
            }
            target.set(chknumend);
        }
    }
    
    /**
     * Unsets the "CHKNUMEND" element
     */
    public void unsetCHKNUMEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CHKNUMEND$2, 0);
        }
    }
}
